home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / L-M / mini / ErrMsg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-03  |  479 b   |  23 lines  |  [TEXT/MPS ]

  1. /*
  2.     Author:    Jerry LeVan
  3.             325 Boone Trail
  4.             Richmond Ky 40475
  5.     New File: May 1987
  6. */
  7. #include <packages.h>
  8.  
  9. #include <dialogs.h>
  10.  
  11. #define ERR_ID 128
  12.  
  13. void ErrorMessage(msg,reason)
  14.   char *msg;      /* the reason */
  15.   short reason;   /* system error code (if not zero) */
  16.   { char tmp[10]; /* storage for numeric conversion */
  17.   
  18.     if(reason ){ 
  19.       NumToString(reason,tmp);
  20.       ParamText(msg,"Reason:",tmp,nil);}
  21.     else ParamText(msg,"  ","  ",nil);
  22.     StopAlert(ERR_ID,nil);
  23.    }